package pers.wangyuhang.demo1;

/**
 * Created with IntelliJ IDEA.
 * Desciption:
 * User: 15716
 * Date: 2021-12-23
 * Time: 16:49
 */
public class Animal {
    String name;
    int age;
    int legs;

    public Animal() {
        System.out.println("hehe");
    }

    public void sleep() {

        System.out.println("睡觉");
    }

    public void run() {
        System.out.println("可以跑步");
    }

    public void eat() {
        System.out.println("可以吃饭");
    }
}
